#pragma once
#include "stdafx.h"

class CTimer
{
public:
	CTimer(void);
	
	void	Update(void);
	float	GetElapsedTime() { return m_timerStopped ? 0.0f : m_timeElapsed; }

private:
	float			m_timeElapsed;
	float			m_runningTime;
	float			m_fps;
	INT64			m_lastTime;
	INT64			m_ticksPerSecond;
	INT64			m_currentTime;
	INT64			m_lastFPSUpdate;
	INT64			m_FPSUpdateInterval;
	INT64			m_ticksPerSecond;
	BOOL			m_timerStopped;
	UINT			m_numFrames;
};

